/**
 * @description 字典
 * @author zhongshigui
 * @since
 */

import { PersonnelServiceApi } from "./_personnel";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "/@/utils/common";
import service from "/@/utils/request";

class DictionaryServiceApi extends PersonnelServiceApi {
  queryCode(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/queryCode";
    url += objectToUrlParams(params, true);
    return service.get(url, { params: { ...bean } });
  }
}
const dictionaryServiceApi = new DictionaryServiceApi("/MdmCodeCodingService");

export default dictionaryServiceApi;
